#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
using namespace std;

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        cerr<<"Usage:"<<argv[0]<<"-signalnumber pid"<<endl;
    }

    int number = stoi(argv[1]+1);
    pid_t id = stoi(argv[2]);

    int n = kill(id,number);
    
    return n;
}

